scanf("%d",&student_num); /* may cause bombs in TC with 'indirect' object */
inherited::set();
}
scanf() accepts the address of a variable as an argument, reads a value from the keyboard, and assigns the value to the variable pointed to by the address. If memory is moved, this action may overwrite important data used for another purpose. To avoid this problem, TC recommends a "shadowing" technique using local variables: